package com.huilian.iotbox.data.enums;

import lombok.Getter;

/**
 * @author chenqiwen
 * @CreateDate: 2022-08-16-09-07
 * @Description:
 */
@Getter
public enum ConsumeRecordEndOfChargeType {
    RUN_OUT_OF(0,"购买的充电时或者电量用完了"),
    MANUAL_STOP(1,"用户手动停止（拔插头，或是按了停止按钮）"),
    CHARGING_FULL(2,"充电满了，自动停止"),
    SUPER_POWER_SELF_STOP(3,"超功率自停"),
    REMOTE_POWER(4,"远程断电"),
    THE_PORT_IS_FAULTY(11,"设备或是端口出现问题，被迫停止"),
    ;
    private Integer code;
    private String desc;

    ConsumeRecordEndOfChargeType(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
